﻿using com.iot.core.annotation;
using com.iot.core.data;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace com.iot.ht.Controllers.htpage.data
{
    [Schema(Name = "功能页面授权Dto", Description ="")]
    public class HtPageAuthDto : BaseDto
    {





        [Comment("授权代码")]
        [Schema(Name = "授权代码", Description = "网站Url")]
        [MaxLength(50)]
        public string Code { get; set; } = "";


        [Comment("授权名称")]
        [Schema(Name = "授权名称", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50)]
        public string Name { get; set; } = "";


        [Comment("备注")]
        [Schema(Name = "备注", Description = "")]
        public string Memo { get; set; } = "";


        [Comment("Urls")]
        [Schema(Name = "Urls", Description = "支持*号，多个Url逗号分隔")]
        public string Urls { get; set; } = "";


        [Comment("参数1")]
        [Schema(Name = "参数1", Description = "")]
        [MaxLength(50)]
        public string P1 { get; set; } = "";


        [Comment("参数2")]
        [Schema(Name = "参数2", Description = "")]
        [MaxLength(50)]
        public string P2 { get; set; } = "";


        [Comment("参数3")]
        [Schema(Name = "参数3", Description = "")]
        [MaxLength(50)]
        public string P3 { get; set; } = "";


        [Comment("参数4")]
        [Schema(Name = "参数4", Description = "")]
        [MaxLength(50)]
        public string P4 { get; set; } = "";


        [Comment("排序号")]
        [Schema(Name = "排序号", Description = "")]
        public long Sortno { get; set; }

    }
}
